package com.example.daoman;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.util.List;

@Data
public class User {
    @ExcelIgnore
    private int id;  //
    @ExcelIgnore
    private int bid;  //床位id

    @ExcelProperty("姓名")
    private String name;   //  姓名

    @ExcelProperty("账户")
    private String account; //账号

    @ExcelIgnore
    private String password;   //

    @ExcelProperty("生日")
    private String birth;

    @ExcelProperty("电话")
    private String phone;

    @ExcelProperty("专业")
    private String professional;  //  专业

    @ExcelProperty("班级")
    private String grade;  //  班级

    @ExcelProperty("分数")
    private int score;  //  考核分数

    @ExcelProperty("身份证")
    private String card;

    //床位信息
    @ExcelIgnore
    @TableField(exist = false)
    private Beds beds;

    //    房间信息
    @ExcelIgnore
    @TableField(exist = false)
    private Room room;

    //    楼层信息
    @ExcelIgnore
    @TableField(exist = false)
    private Floor floor;

    //    权限表格
    @ExcelIgnore
    @TableField(exist = false)
    private List<Permissions> permissions;

    //返回的数据条数
    @ExcelIgnore
    @TableField(exist = false)
    private int number;

//    备注信息
    @ExcelIgnore
    @TableField(exist = false)
    private String note;
}
